import request from "@/utils/request";

export class Foster {
    static getlist = (foster, pageNum, limit) => request({
        url: '/foster/fosterlist',
        method: "POST",
        data: foster,
        params: { pageNum: pageNum, limit: limit }
    })
    static total = () => request({
        url: '/foster/total',
        method: "GET"
    })
    static del = (id) => request({
        url: '/foster/del',
        method: "GET",
        params: { id: id }
    })
    static update = (foster) => request({
        url: '/foster/update',
        method: "POST",
        data: foster
    })
    static add = (foster) => request({
        url: '/foster/add',
        method: "POST",
        data: foster
    })
}